package com.example.pages;

import java.util.List;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public abstract class AnyPage extends Page {
	
	@FindBy(css = ".languages a")
	public List <WebElement> languages;

	public void switchToEnglish() {
		languages.get(0).click();
	}
	
	public void switchToNederlands() {
		languages.get(1).click();
	}
	
	public boolean isOnThisPage() {
		return languages.get(0).isDisplayed();
	}
}
